Skip to content

Promote Relay artifacts into manifest - #19

Merged
AjayThorve merged 4 commits into
NVIDIA:mainfrom
AjayThorve:ajay/fabric-relay-artifacts-manifest
Jun 26, 2026
Merged

Promote Relay artifacts into manifest#19
AjayThorve merged 4 commits into
NVIDIA:mainfrom
AjayThorve:ajay/fabric-relay-artifacts-manifest

Conversation

@AjayThorve

@AjayThorve AjayThorve commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Promote adapter-reported Relay ATOF/ATIF files into ArtifactManifest.artifacts.
  • Keep existing output.relay_artifacts unchanged for compatibility.
  • Extend the Relay integration smoke to assert manifest references.
  • Update the MVP plan by moving the now-covered Relay artifact checks from next steps into status.

Validation

  • cargo test -p fabric-core
  • RUN_FABRIC_RELAY_INTEGRATION=1 python3 tests/smoke_relay_integration.py
  • cargo test
  • python3 tests/smoke_cli.py

Closes FABRIC-20.

Summary by CodeRabbit

  • New Features
    • Relay-emitted atof/atif artifacts are now promoted into run results and the artifact manifest with relay_<kind> naming, including automatic suffixing for duplicates, and correct media types.
  • Bug Fixes
    • Stdout JSON is parsed once and reused consistently for output reporting and artifact promotion.
    • Promoted artifacts are added only when their files exist and aren’t already present in the manifest.
  • Tests
    • Added automated coverage for artifact promotion and unique naming.
    • Extended the Relay smoke integration assertions to validate discovered relay artifact kinds.
  • Documentation
    • Updated the Relay/telemetry MVP plan next-step wording and scope.

Signed-off-by: Ajay Thorve <athorve@nvidia.com>
@linear

linear Bot commented Jun 25, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 2e428673-1599-4a20-b6bd-74c0d5b2667e

📥 Commits

Reviewing files that changed from the base of the PR and between 0959850 and 2a76924.

📒 Files selected for processing (1)
  • crates/fabric-core/src/runtime.rs
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/fabric-core/src/runtime.rs

📝 Walkthrough

Walkthrough

The runtime now promotes selected Relay stdout artifacts into each run’s artifact manifest after parsing stdout once, and the Relay smoke test now checks for those promoted manifest artifacts.

Changes

Relay artifact promotion

Layer / File(s) Summary
Runtime promotion and tests
crates/fabric-core/src/runtime.rs, POC-TO-MVP-PLAN.md
run_process_adapter and run_python_adapter parse stdout once, promote selected relay_artifacts into ArtifactManifest, and reuse the parsed output for RunResult.output. The runtime unit test covers promoted relay artifact names, media types, and paths. The plan document updates the Relay telemetry and artifacts status text.
Smoke relay assertion
tests/smoke_relay_integration.py
The smoke test derives relay kinds from manifest artifacts whose names start with relay_ and asserts that atof and atif are present.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: promoting Relay artifacts into the manifest.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@AjayThorve
AjayThorve marked this pull request as ready for review June 25, 2026 23:49
@AjayThorve
AjayThorve requested a review from dagardner-nv June 25, 2026 23:50

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@crates/fabric-core/src/runtime.rs`:
- Around line 1228-1233: Ensure promoted artifact names in the manifest stay
unique when pushing to manifest.artifacts. The current artifact creation in the
relay promotion path uses relay_{kind} for every match, which can collide for
multiple entries of the same kind and make lookups ambiguous. Update the logic
around the ArtifactRef push so either only one artifact per kind is allowed or
the name is made unique using a filename- or index-based suffix before inserting
it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3a0720f2-ef95-4440-b751-6baea26f41dc

📥 Commits

Reviewing files that changed from the base of the PR and between 21c27cf and 4a43cc3.

📒 Files selected for processing (2)
  • crates/fabric-core/src/runtime.rs
  • tests/smoke_relay_integration.py

Comment thread crates/fabric-core/src/runtime.rs
Signed-off-by: Ajay Thorve <athorve@nvidia.com>
Signed-off-by: Ajay Thorve <athorve@nvidia.com>
Comment thread crates/fabric-core/src/runtime.rs Outdated
Signed-off-by: Ajay Thorve <athorve@nvidia.com>
@AjayThorve
AjayThorve merged commit cd0040a into NVIDIA:main Jun 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants